const path = require('path')
const { override, addWebpackAlias } = require('customize-cra')

// const babelPlugins = fixBabelImports('import', {
//   libraryName: 'antd-mobile',
//   style: 'css',
// })
const webpackAlias = addWebpackAlias({
  '@': path.resolve(__dirname, 'src'),
  '@scss': path.resolve(__dirname, 'src', 'assets', 'styles'),
})

// 导出要进行覆盖的 webpack 配置
module.exports = override(webpackAlias)
